SPARTA (26 Feb 2021)
################################################################################
# 2d flow around a circle
#
# Note:
#  - The "comm/sort” option to the “global” command is used to match MPI runs.
#  - The “twopass” option is used to match Kokkos runs.
# The "comm/sort" and "twopass" options should not be used for production runs.
################################################################################

seed	    	    12345
dimension   	    2
global              gridcut 0.0 comm/sort yes

boundary	    	o r p

create_box  	    0 10 0 10 -0.5 0.5
Created orthogonal box = (0 0 -0.5) to (10 10 0.5)
create_grid 	    20 20 1
WARNING: Could not acquire nearby ghost cells b/c grid partition is not clumped (/ascldap/users/stamoor/sparta_stanmoore1/src/grid.cpp:410)
Created 400 child grid cells
  CPU time = 0.00176811 secs
  create/ghost percent = 83.0367 16.9633
balance_grid        rcb cell
Balance grid migrated 280 cells
  CPU time = 0.00181746 secs
  reassign/sort/migrate/ghost percent = 66.7585 0.4329 13.761 19.0476

global		    	nrho 1.0 fnum 0.001

species		    	air.species O CO CO2 C
mixture		    	air O vstream 100.0 0 0

mixture             air O   frac 1.0
mixture             air CO  frac 0.0
mixture             air CO2 frac 0.0
mixture             air C   frac 0.0

read_surf           data.circle
  50 points
  50 lines
  2 8 xlo xhi
  2.00592 7.99408 ylo yhi
  0 0 zlo zhi
  0.376743 min line length
  0 0 = number of pushed cells
  48 0 = cells overlapping surfs, overlap cells with unmarked corner pts
  264 88 48 = cells outside/inside/overlapping surfs
  48 = surf cells with 1,2,etc splits
  71.8 71.8 = cell-wise and global flow volume
  CPU time = 0.0017612 secs
  read/check/sort/surf2grid/ghost/inout/particle percent = 16.705 17.3277 1.77339 49.3841 14.8098 15.7303 0.108298
  surf2grid time = 0.000869751 secs
  map/comm1/comm2/comm3/comm4/split percent = 28.4539 6.74342 5.45504 3.07018 7.53838 42.4068

surf_collide        1 cll 300.0 0.5 0.5 0.5 0.5

################################### SURF REACT ADSORB ######################################

#surf_react          adsorb_test_ps1 adsorb ps sample-PS_1.surf nsync 1 surf 1000 6.022e9 O CO
#surf_modify         all collide 1 react adsorb_test_ps1

surf_react          adsorb_test_ps2 adsorb ps sample-PS_2.surf nsync 1 surf 1000 6.022e9 O CO
surf_modify         all collide 1 react adsorb_test_ps2

############################################################################################

#collide            vss air air.vss

fix		    		in emit/face air xlo nevery 100 n 10000 perspecies no twopass # subsonic 0.1 NULL

timestep 	    	0.0001

#dump                2 image all 50 image.*.ppm type type pdiam 0.1 surf proc 0.01 size 512 512 zoom 1.75 gline yes 0.005
#dump_modify	     2 pad 4

stats		    	10
stats_style	    	step cpu np nattempt ncoll nscoll nscheck
run 		    	500
Memory usage per proc in Mbytes:
  particles (ave,min,max) = 0 0 0
  grid      (ave,min,max) = 1.51379 1.51379 1.51379
  surf      (ave,min,max) = 0.00514984 0.00514984 0.00514984
  total     (ave,min,max) = 1.51894 1.51894 1.51894
Step CPU Np Natt Ncoll Nscoll Nscheck 
       0            0        0        0        0        0        0 
      10 0.00068187714        0        0        0        0        0 
      20 0.0013029575        0        0        0        0        0 
      30 0.0019335747        0        0        0        0        0 
      40 0.0026407242        0        0        0        0        0 
      50   0.00644207        0        0        0        0        0 
      60 0.0075492859        0        0        0        0        0 
      70 0.0083212852        0        0        0        0        0 
      80  0.008919239        0        0        0        0        0 
      90  0.009500742        0        0        0        0        0 
     100  0.016174793    10000        0        0        0        0 
     110  0.020979166    10056        0        0        0       25 
     120  0.025136471    10058        0        0       30      890 
     130  0.032387972    10055        0        0       77     2772 
     140   0.03839612    10006        0        0       95     3522 
     150  0.044557571     9855        0        0       92     3463 
     160  0.049777746     9595        0        0       77     3062 
     170  0.054838181     9259        0        0       57     2688 
     180  0.059635162     8872        0        0       47     2289 
     190  0.066255093     8475        0        0       26     1829 
     200  0.077720404    18073        0        0       36     1648 
     210  0.086105824    17614        0        0       28     1500 
     220  0.094856739    17180        0        0       63     2363 
     230   0.10504603    16753        0        0      119     4015 
     240   0.11533046    16271        0        0      124     4904 
     250   0.12620616    15727        0        0      111     4577 
     260   0.13611841    15044        0        0       75     3958 
     270   0.14213991    14344        0        0       65     3440 
     280   0.15000248    13651        0        0       74     3170 
     290   0.15563893    12836        0        0       51     2741 
     300    0.1697619    22097        0        0       55     2465 
     310   0.18111873    21341        0        0       33     2111 
     320    0.1910255    20624        0        0       58     2775 
     330   0.20082068    19872        0        0      149     4727 
     340   0.21477389    19116        0        0      123     5378 
     350   0.22750449    18374        0        0      102     4918 
     360   0.23919487    17498        0        0       84     4337 
     370   0.24856567    16661        0        0       90     3867 
     380   0.25825453    15743        0        0       77     3470 
     390   0.26617312    14835        0        0       59     2919 
     400   0.27655315    23987        0        0       60     2592 
     410   0.28468204    23101        0        0       41     2284 
     420    0.2948432    22222        0        0       83     3114 
     430   0.30791736    21429        0        0      138     4805 
     440   0.32206869    20636        0        0      154     5497 
     450   0.33269763    19763        0        0      115     5205 
     460   0.34288335    18811        0        0      108     4780 
     470   0.35265589    17830        0        0       81     4082 
     480   0.35957217    16848        0        0       75     3627 
     490   0.36760759    15900        0        0       75     3134 
     500   0.37798214    24933        0        0       58     2789 
Loop time of 0.378052 on 4 procs for 500 steps with 24933 particles

MPI task timing breakdown:
Section |  min time  |  avg time  |  max time  |%varavg| %total
---------------------------------------------------------------
Move    | 0.042019   | 0.13546    | 0.2242     |  22.4 | 35.83
Coll    | 0          | 0          | 0          |   0.0 |  0.00
Sort    | 0          | 0          | 0          |   0.0 |  0.00
Comm    | 0.01655    | 0.043851   | 0.068015   |  11.4 | 11.60
Modify  | 0.00019717 | 0.012546   | 0.025302   |  11.0 |  3.32
Output  | 0.0066011  | 0.0072914  | 0.0092709  |   1.3 |  1.93
Other   |            | 0.1789     |            |       | 47.32

Particle moves    = 6341767 (6.34M)
Cells touched     = 7184623 (7.18M)
Particle comms    = 24813 (24.8K)
Boundary collides = 28648 (28.6K)
Boundary exits    = 25299 (25.3K)
SurfColl checks   = 1304441 (1.3M)
SurfColl occurs   = 30836 (30.8K)
Surf reactions    = 0 (0K)
Collide attempts  = 0 (0K)
Collide occurs    = 0 (0K)
Reactions         = 0 (0K)
Particles stuck   = 0
Axisymm bad moves = 0

Particle-moves/CPUsec/proc: 4.19371e+06
Particle-moves/step: 12683.5
Cell-touches/particle/step: 1.13291
Particle comm iterations/step: 1.806
Particle fraction communicated: 0.00391263
Particle fraction colliding with boundary: 0.00451735
Particle fraction exiting boundary: 0.00398927
Surface-checks/particle/step: 0.20569
Surface-collisions/particle/step: 0.00486237
Surf-reactions/particle/step: 0
Collision-attempts/particle/step: 0
Collisions/particle/step: 0
Reactions/particle/step: 0

Surface reaction tallies:
  id adsorb_test_ps2 style adsorb #-of-reactions 5
    reaction all: 232
    reaction C(b) --> C(g): 232

Particles: 6233.25 ave 10198 max 2260 min
Histogram: 2 0 0 0 0 0 0 0 0 2
Cells:      100 ave 100 max 100 min
Histogram: 4 0 0 0 0 0 0 0 0 0
GhostCell: 21 ave 21 max 21 min
Histogram: 4 0 0 0 0 0 0 0 0 0
EmptyCell: 21 ave 21 max 21 min
Histogram: 4 0 0 0 0 0 0 0 0 0
Surfs:    50 ave 50 max 50 min
Histogram: 4 0 0 0 0 0 0 0 0 0
GhostSurf: 0 ave 0 max 0 min
Histogram: 4 0 0 0 0 0 0 0 0 0

